<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fulbito Jueliz</title>
<script>
     function Validar()
        {
        Usuario=f1.txtUsuario.value;
        Clave=f1.txtClave.value;
        
                var acumula="";

    if(Usuario==""){acumula+="Ingrese un Username \n";}
        if(Clave==""){acumula+="Ingrese la Clave \n";}
        
                if(acumula!="")
                { 
                         alert(acumula); 
                }
//                else
//                        {


//                              document.f1.accion.Value="GRABAR";
                              document.f1.submit();
//			               location.href='Principal.jsp';
//                        }
        }
    </script>
<style type="text/css">
body {
        background-image: url(Proxy_Grass.jpg);
}
</style>
</head>

<body>
<form id="f1" name="f1" method="post" action="LoginServlet" >

  <table width="279" border="2" align="center">
    <tr>
      <td bgcolor="#FF9933">Username</td>
      <td bgcolor="#FF9933"><input type="text" name="txtUsuario" id="txtUsuario" /></td>
    </tr>
    <tr>
      <td bgcolor="#FF9933">Password</td>
      <td bgcolor="#FF9933"><input type="password" name="txtClave" id="txtClave" /></td>
</tr>
    <tr>
      <td colspan="2" align="center" valign="middle" bgcolor="#FF9933"><input type="button" name="Ingresar" id="Ingresar" value="Ingresar" style="font-weight: bold; color: white; background-color: green" onClick="Validar()"/></td>
    </tr>
    <tr>
      <td colspan="2" align="center" valign="middle" bgcolor="#FF9933"><a href="RegistroPersona.jsp" title="Registro" target="_top" >Registro de Usuarios Nuevos</a></td>
    </tr>
    <tr> </tr>
  </table>
</form>
</body>
</html>
